package com.ting.test.algorithms.strings;

import java.util.ArrayList;

/**
 * Created by 雷霆 on 2021/1/9.
 * <p>
 * Description：
 * 规定1和A对应、2和B对应、3和C对应...
 * 那么一个数字字符串比如"111”就可以转化为:
 * "AAA"、"KA"和"AK"
 * 给定一个只有数字字符组成的字符串str，返回有多少种转化结果
 */
public class TryFromLeftToRightStr {

    public static void main(String[] args) {
        String str = "afadadf";
        ArrayList<String> list = new ArrayList();
        char[] strchar = str.toCharArray();
//        printSubSequence(strchar, 0, list, "");
//        list.forEach((subStr) -> {
//            System.out.println(subStr);
//        });

        ArrayList<String> list2 = new ArrayList();

        printAll(strchar, 0, list2);
        list2.forEach((subStr) -> {
            System.out.println(subStr);
        });
    }

    private static int printAll(char[] strchar, int i, ArrayList<String> list2) {

            return 1;


    }
}
